﻿<UserControl xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"     x:Class="MH.CRM.Summary.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="600">

    <Grid>
        <toolkit:BusyIndicator Name="BusyIndicator" IsBusy="True">
            <Grid x:Name="LayoutRoot" Background="White">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="1*"/>

                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="435"/>
                    <ColumnDefinition Width="1*"/>
                </Grid.ColumnDefinitions>

                <Border Grid.Column="0" Height="25" Grid.Row="0" Background="#ffe7ebef" BorderBrush="#ffa5acb5" BorderThickness="1,1,1,0">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="25"/>
                        </Grid.ColumnDefinitions>

                        <StackPanel Name="PanelButtons" Orientation="Horizontal"/>

                        <HyperlinkButton Style="{StaticResource ImageButton}" Grid.Column="1" IsTabStop="False" Name="HyperlinkButtonRefresh"  Click="HyperlinkButtonRefresh_Click">
                            <Image  Name="imageRefresh" ToolTipService.ToolTip="2.0" Margin="2" Width="16" Height="16" Source="/MH.CRM.Summary;component/imgs/refresh16.png" />
                        </HyperlinkButton>
                    </Grid>

                </Border>
                <ListBox BorderThickness="1"  BorderBrush="#ffa5acb5" HorizontalAlignment="Stretch" Grid.Column="0" Grid.Row="1" Name="listBoxActivities" VerticalAlignment="Stretch" SelectionChanged="listBoxActivities_SelectionChanged" />

                <Border Padding="4" Grid.RowSpan="2"  BorderThickness="1" HorizontalAlignment="Stretch" Margin="3,0,0,0" Grid.Column="1" Grid.Row="0" Name="borderPreview" VerticalAlignment="Stretch" BorderBrush="#ffa5acb5">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="1*"/>
                            <RowDefinition Height="1*"/>
                        </Grid.RowDefinitions>
                        <StackPanel Orientation="Vertical">
                            <TextBlock Name="TextBlockSubject" TextWrapping="Wrap" FontWeight="Bold" Text=" "/>
                            <TextBlock Name="TextBlockFrom" Text=" " />
                            <TextBlock Name="TextBlockDate" Foreground="Gray" Text=" "/>
                            <TextBlock Name="TextBlockTo" TextWrapping="Wrap" Text=" "/>

                        </StackPanel>

                        <Border Grid.Row="1" BorderBrush="#ffa5acb5" BorderThickness="0,1,0,0" Padding="0,5,0,0">
                            <ScrollViewer  Name="ScrollViewerDescription" Padding="0" Margin="0" BorderThickness="0">
                                <TextBlock Name="TextBlockDescription" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" TextWrapping="Wrap"/>
                            </ScrollViewer>
                        </Border>
                        <ListBox BorderThickness="1"  BorderBrush="#ffa5acb5" HorizontalAlignment="Stretch" Grid.Column="0" Grid.Row="2" Name="listAttachments" VerticalAlignment="Stretch" />
                    </Grid>
                </Border>


            </Grid>
        </toolkit:BusyIndicator>
    </Grid>
</UserControl>
